<template>
    <div class="tab-container">
        <el-tabs style='margin-top:15px;' v-model="activeName">
            <el-tab-pane :label="$t('elecAchievement.ElectricGroup')" name="first">
                <electric-group v-if="activeName === 'first'"></electric-group>
            </el-tab-pane>
            <el-tab-pane :label="$t('electricRecord.ElecSalesman')" name="second">
                <elec-salesman v-if="activeName === 'second'"></elec-salesman>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>
    export default {
      data() {
        return {
          activeName: 'first'
        }
      },
      components: {
        'electric-group': () => import('./components/ElectricGroup'),
        'elec-salesman': () => import('./components/ElecSalesman')
      }
    }
</script>

<style scoped>
.tab-container {
  margin: 30px 15px;
}
</style>